/* Layout */
import Layout from '../views/layout/Layout';

const _import = require(`./_import_${process.env.NODE_ENV}`);

const vipRoutes = [
  {
    path: '/vip-manage',
    name: 'vip-manage',
    component: Layout,
    redirect: 'noredirect',
    meta: {
      title: 'VIP管理',
      icon: 'component',
      roles: [],
    },
    children: [
      {
        path: 'vip-manage-member',
        name: 'vip-manage-member',
        component: _import('vipManage/index'),
        meta: {
          title: '会员VIP管理',
          roles: ['vip-condition-setting'/* 等级条件设置 */, 'vip-awards-setting'/* 奖励设置 */,
            'vip-awards-record'/* 奖励发放记录 */, 'vip-level-record'/* 等级修改记录 */,
            'condition-setting-save'/* 等级条件设置保存 */, 'awards-record-export'/* 奖励发放记录导出 */,
            'awards-setting-save'/* 奖励设置保存 */, 'level-record-export'/* 等级修改记录导出 */],
        },
      },
    ],
  },
];
export default vipRoutes;
